package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.HighRepurchaseCategoryMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.HighRepurchaseCategory;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.HighRepurchaseCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HighRepurchaseCategoryServiceImpl implements HighRepurchaseCategoryService {
    @Autowired
    private HighRepurchaseCategoryMapper highRepurchaseCategoryMapper;

    @Override
    public List<HighRepurchaseCategory> selectAll() {
        return highRepurchaseCategoryMapper.selectAll();
    }

    @Override
    public int insert(HighRepurchaseCategory highRepurchaseCategory) {
        return highRepurchaseCategoryMapper.insert(highRepurchaseCategory);
    }
}
